import { request as http } from './service'
import IBaseObj from '#/index'

export const uploadImage = (data: IBaseObj) =>
  http({
    url: `/common/upload/image`,
    method: 'post',
    data,
  })

export const getToday = () =>
  http({
    url: `/today`,
    method: 'get',
  })

export const getConnect = () =>
  http({
    url: '/msg/stream',
    method: 'get',
  })

export const getStatus = (flag: string) =>
  http(
    {
      url: `/ctms/visit/status/${flag}`,
      method: 'get',
    },
    true
  )
